/**
 * MeetSource.java
 */
package com.prs.crm.domain.meeting;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.AttributeType;
import com.prs.crm.domain.hr.Dept;

/**
 * @author ZhuDongMei
 * @E-mail:1223984339@qq.com
 * @qq:1223984339
 * @version 创建时间：2011-3-16 上午11:12:28 简单说明
 */
@Entity
@Table(name="meet_source")
public class MeetSource extends BaseEntity {

	/**
	 * 会议室资源描述
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	/**
	 * 资源编号
	 */
    private Integer id;
	/**
	 * 资源名称
	 */
    private String name;
    @ManyToOne
	private MeetSource parent;
	
	@OneToMany(mappedBy="parent")
	private Set<MeetSource> childs;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public MeetSource getParent() {
		return parent;
	}
	public void setParent(MeetSource parent) {
		this.parent = parent;
	}
	public Set<MeetSource> getChilds() {
		return childs;
	}
	public void setChilds(Set<MeetSource> childs) {
		this.childs = childs;
	}
	
}
